{% extends "base.html" %}
{% load i18n %}
{% load lp_extras %}
{% block base_step %}
<div id="projectname">{% if project.id %}{{ project.proname }}{% else %}{% trans "My project" %}{% endif %}</div>
<form action="" method="post" id="step_form" name="step_form">
<div id="main_step_menu">
<div id="mainmenu">
<div id="startconnector"></div>
<div id="mainmenutext">{% if step_name|cookies_off:user %}{% trans "Cookies off - not saving project." %}{% endif %}</div>
</div>
<div id="leftmenu">
<div id="connector"></div>
{% with project.project_data as project_data %}
<ul id="navlist">
{% ifequal step_name "step1" %}
{% if not project.id %}<li id="active"><a class="nl" href="{% url lp.lpx.views.step1 "new" %}" id="current">1. {% trans "Basics" %}</a></li>
{% else %}<li id="active"><a class="nl" href="{% url lp.lpx.views.step1 project.id %}" id="current">1. {% trans "Basics" %}</a></li>{% endif %}
{% else %}<li><a class="nl" href="{% url lp.lpx.views.step1 project.id %}">1. {% trans "Basics" %}</a></li>{% endifequal %}
<li class="connector"></li>
{% ifequal step_name "step2" %}<li id="active"><a class="nl" href="{% url lp.lpx.views.step2 project.id %}" id="current">2. {% trans "LP prob." %}</a></li><span id="viewtype">[{% ifequal viewtype "classic" %}<a href="?view=flat">{% trans "flat" %}</a>{% else %}<a href="?view=classic">{% trans "classic" %}</a>{% endifequal %}]&nbsp;</span>
{% else %}{% if not project_data.data %}<li><div class="disabled">2. {% trans "LP prob." %}</div></li>
{% else %}<li><a class="nl" href="{% url lp.lpx.views.step2 project.id %}">2. {% trans "LP prob." %}</a></li>{% endif %}{% endifequal %}
<li class="connector"></li>
{% ifequal step_name "step3" %}<li id="active"><a class="nl" href="{% url lp.lpx.views.step3 project.id %}" id="current">3. {% trans "Options" %}</a></li>
{% else %}{% if not project_data.options %}<li><div class="disabled">3. {% trans "Options" %}</div></li>
{% else %}<li><a class="nl" href="{% url lp.lpx.views.step3 project.id %}">3. {% trans "Options" %}</a></li>{% endif %}{% endifequal %}
<li class="connector"></li>
{% ifequal step_name "solution" %}<li id="active"><a class="nl" href="{% url lp.lpx.views.solution project.id %}" id="current">{% trans "Solution" %}</a></li>
<span id="viewtype">[ <a class="{{ solfile.status }}" href="?bodfile={{ bodfile.status }}&amp;{% ifequal solfile.status "show" %}solfile=hide{% else %}solfile=show{% endifequal %}">SF</a> | <a class="{{ bodfile.status }}" href="?solfile={{ solfile.status }}&amp;{% ifequal bodfile.status "show" %}bodfile=hide{% else %}bodfile=show{% endifequal %}">BF</a> ]&nbsp;</span>
{% else %}{% if not project_data.solution %}<li><div class="disabled">{% trans "Solution" %}</div></li>
{% else %}<li><a class="nl" href="{% url lp.lpx.views.solution project.id %}">{% trans "Solution" %}</a></li>{% endif %}{% endifequal %}
</ul>
{% endwith %}
</div>
<div id="step">{% block content %}{% endblock content %}</div>
</div>
</form>
{% endblock base_step %}

